package com.edu.javaweb.mapper;

import com.edu.javaweb.pojo.Admin;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface AdminMapper {
    @Update("update admin set password=#{password} where id=#{id}")
    void upById(Admin admin);
    @Select("select * from admin where account=#{account}")
    Admin queryByAccount(String account);
}
